package com.cjb.cloudsystem.vo;


import com.cjb.common.util.DateUtils;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
* 用户Token
*
* @author 陈锦斌 2213859123@qq.com
* @since 1.0.0 2023-08-29
*/
@Data
@Schema(description = "用户Token")
public class SysUserTokenVO implements Serializable {
	private static final long serialVersionUID = 1L;

	@Schema(description = "id")
	private Long id;

	@Schema(description = "用户ID")
	private Long userId;

	@Schema(description = "accessToken")
	private String accessToken;

	@Schema(description = "accessToken 过期时间")
	@JsonFormat(pattern = DateUtils.DATE_TIME_PATTERN)
	private Date accessTokenExpire;

	@Schema(description = "refreshToken")
	private String refreshToken;

	@Schema(description = "refreshToken 过期时间")
	@JsonFormat(pattern = DateUtils.DATE_TIME_PATTERN)
	private Date refreshTokenExpire;

	@Schema(description = "租户ID")
	private Long tenantId;

	@Schema(description = "创建时间")
	@JsonFormat(pattern = DateUtils.DATE_TIME_PATTERN)
	private Date createTime;


}